import axios from '@/libs/request/axios'
import QS from 'qs';
//获取资产信息
export const getCustInsuranceInfo = (contractNo, isSP) => {
    return axios.request({
        url: `/${isSP?"apply":"contractBasic"}/custInsuranceInfo/getCustInsuranceInfo`,
        data: QS.stringify({contractNo: contractNo}, {arrayFormat: 'repeat'}),
        method: 'post',
        headers: {'content-type': 'application/x-www-form-urlencoded'},
    })
}

// 获取资产保险信息数据 多条件
export const getInsurancePopList = (params,isSP) => {
    return axios.request({
        url: `/${isSP?"apply":"contractBasic"}/custInsuranceInfo/getInsurancePopList`,
        data: params,
        method: 'post',
    })
}
// 更新资产保险信息数据
export const saveBasicInsurance = (params,isSP) => {
    return axios.request({
        url: `/${isSP?"apply":"contractBasic"}/custInsuranceInfo/saveBasicInsurance`,
        data: params,
        method: 'post',
    })
}
